<template>
	<view>
		<web-view src="https://chenqichun.com/demo/webview-h5.html" @message="handleMessage"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			handleMessage(e) {
				console.log(e)
				uni.showModal({
					title:'提示',
					content: 'h5传过来的信息'+ e.detail.data[0].val
				})
			}
		}
	}
</script>

<style>

</style>
